﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CapaDatos;
using CapaEntidades;

namespace CapaNegocio
{
    public class nePersonal
    {
        #region singleton
        private static readonly nePersonal _instancia = new nePersonal();
        public static nePersonal Instancia
        {
            get { return nePersonal._instancia; }
        }
        #endregion

        #region Métodos
        public List<enPersonal> spListarPersonalAll()
        {
            return daPersonal.spListarPersonalAll();
        }


        public enAlerta spUpdateUsuaPerso(String user, int idPer)
        {
            try
            {
                return daPersonal.Instancia.spUpdateUsuaPerso(user,idPer);
            }
            catch (Exception)
            {

                throw;
            }
        }

        public enAlerta spUpdatePassPerso(String pass, int idPer)
        {
            try
            {
                return daPersonal.Instancia.spUpdatePassPerso(pass, idPer);
            }
            catch (Exception)
            {

                throw;
            }
        }
        #endregion
    }
}
